/**
 * 定义rb中面板lf
 * name属性没有指定
 */
Ext.define('Risk.view.rm.Pm2', {
    extend: 'Ext.form.FieldSet',
    alias: 'widget.pm2fieldset',
    title: '雷击建筑物附近引起内部系统故障风险分量【Pm】',
    layout: 'vbox',
    autoShow: true,
    height:150,
    initComponent: function() {
      //初始化Window中的内容
    	
    	this.items = [
    	              {
    	   			    xtype: 'radiogroup',
    	   			    width:300,
    	   	            items: [
    	   	                {
    	   	                    boxLabel  : '连续屏蔽体',
    	   	                    name      : 'type2',
    	   	                    inputValue: 1,
    	   	                    checked:true
    	   	                }, {
    	   	                	margin:'0 0 0 10',
    	   	                    boxLabel  : '非连续屏蔽体',
    	   	                    name      : 'type2',
    	   	                    inputValue: 0
    	   	                }
    	   	            ]
    	   	        },
    	   	        {
     	           	   //选择建筑物是否为规则建筑物
     	   			    xtype: 'fieldcontainer',
	     	   			layout:  {
	     	   		        type: 'table',
	     	   		        // The total column count must be specified here
	     	   		        columns: 3
	     	   		    },
	     	   		    defaultType:'textfield',
     	   	            items: [
     	   	                {
     	   	                    fieldLabel  : 'ks1',
     	   	                    itemId:'ks1',
     	   	                    labelWidth:25,
     	   	                    style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
     	   	                    fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;',
     	   	                    vtype:'number',
     	   	                    readOnly:true,
     	   	                    value:0.0001,
     	   	                    name:'ks21'
     	   	                }, 
     	   	                {
     	   	                	margin:'0 0 0 10',
     	   	                	fieldLabel  : 'ks2',
     	   	                	itemId:'ks2',
     	   	                    labelWidth:25,
     	   	                    style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
     	   	                    fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;',
     	   	                	vtype:'number',
     	   	                	readOnly:true,
     	   	                	value:0.0001,
     	   	                	name:'ks22'
     	   	                },
     	   	                {
     	   	                	margin:'0 0 0 10',
     	   	                	itemId:'net',
	 	   	                	fieldLabel  : '网络宽度',
	 	   	                	disabled:true,
	 	   	                	name:'w2',
	 	   	                	vtype:'number'
     	   	                },
     	   	                {
     	   	                	labelWidth:25,
     	   	                	itemId:'ks3',
     	   	                	margin:'5 0 0 10',
     	   	                	width:300,
     	   	                	colspan:2,
     	   	                	fieldLabel  : 'ks3',
     	   	                	xtype:'combo',
     	   	                	store:'rm.PmStore',
     	   	                	minWidth:360,
     	   	                	forceSelection:true,
     	   	                	displayField:'name',
     	   	                	valueField:'value',
     	   	                	name:'ks23'
     	   	                },
     	   	                {
     	   	                	margin:'5 0 0 10',
     	   	                	itemId:'ks4',
     	   	                	labelWidth:25,
     	   	                    style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
     	   	                    fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;',
     	   	                	fieldLabel  : 'Ks4',
     	   	                	readOnly:true,
     	   	                	vtype:'number',
     	   	                	value:0,
     	   	                	name:'ks24'
     	   	                },
	     	   	            {		colspan:3,
     	   	                		width:300,
     	   	                		labelWidth:160,
     	   	                		itemId:'pmres',
	     		   	                margin:'5 0 0 10',
	     		   	                style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
	     		   	                fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;',
	     		   	                fieldLabel  : '内部系统故障概率【Pm】',
	     		   	                readOnly:true,
	     		   	                vtype:'number',
	     		   	                name:'pm2'
	     		   	         }
     	   	                
     	   	            ]
     	   	        }
     	   	        
        ];
        this.callParent(arguments);
    }
});